<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Language" content="zh-cn" />
	<title>登录</title>
	<script type="text/javascript" src="jquery.js"></script>
</head>

<body>
	<p>Username: <input type="text" id="user" /></p>
	<p>Password: <input type="text" id="pwd" /></p>
	<p><input type="button" value="Login" id="submit" />
	<div id="result"></div></p>
	
	<script>
	
		$("#submit").click( function()
		{
			userName = $("#user").val();
			password = $("#pwd").val();

			$.post("login.php", "userName=" + userName + "&password=" + password, function(result)
			{
				$("#result").html(result);
			});
		});

	</script>
</body>
</html>
